package com.bigluo.common.enums;

/**
 * Created by luojun on 2017/8/31.
 */
public enum EChannel {
    Channel_FRONT("FRONT","前置系统"),
    ;
    private String code;
    private String msg;
    EChannel(String code, String msg) {
        this.code = code;
        this.msg = msg;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    public String getMsg() {
        return msg;
    }

    public void setMsg(String msg) {
        this.msg = msg;
    }
    public static EChannel getEchannelByCode(String code) {
        for(EChannel channel : EChannel.values())
            if(channel.getCode().equals(code)) {
                return channel;
            }
        return null;
    }
}
